home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
PredatorPrey
/
ProgWindowRsrcData.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-22
|
2KB
|
47 lines
/* ProgramWindowRsrcData.h -- application-specific data management */
/* Created 940113 1:07 by AppMaker */
#ifndef __PWRD__
#define __PWRD__
/* Define the creator type and file type for your application. */
#define kSignature 'XXXX'
#define kFileType 'TEXT'
/* Define any appropriate data structures for your application. */
/* Add any needed fields to Global's WinInfoRec so that each window */
/* can have its own set of data. Your functions will use "cur->" */
/* to access the data. Here, in the interface section, you should */
/* define only those types which are intended to be visible to */
/* modules outside this one. Later, in the implementation section, */
/* you can define additional "private" data structures. */
typedef struct {
short data;
} YourStuff;
/*----------*/
/* Open, Close, Read, Write, Init, and Dispose are called by the */
/* AppMaker-generated FileM module to do application-specific file accessing. */
Boolean OpenAppFile (short vRefNum,
Str255 fName,
short *fRefNum);
void CloseAppFile (short fRefNum);
void ReadAppFile (short fRefNum);
void WriteAppFile (short fRefNum);
void InitAppData (void);
void DisposeAppData (void);
/* These functions are for accessing your data as logical chunks. */
/* They are just models for your own accessor functions; */
/* they aren't called by any AppMaker-generated code. */
/* Replace them with whatever is suitable for your application. */
void AddStuff (YourStuff *stuff);
void DeleteStuff (void);
Boolean GetStuff (void);
void PutStuff (void);
#endif /* __PWRD__ */